import { CHANGE_BANNER } from "./constants"

const initialState = {
  name: "jay",
  counter: 100,
  banner: []
}

function reducer(state = initialState, action) {
  switch (action.type) {
    case CHANGE_BANNER:
      return { ...state, banner:action.banner } 
    default:
      return state
  }
}

export default reducer